﻿using System.Text.RegularExpressions;

namespace EzDesk.DevHelper.DbMgr.FeedStudio.ToEzLanguage
{
    public class UserInfoProcessor : EzMLProcessor
    {

        public override string Process(string input)
        {
            string regexPattern = "<ez:target><ez:text>{(?<name>.*?)Name}</ez:text></ez:target>";
            var output = input;

            output = Regex.Replace(output, regexPattern, "||${name}||");
            output = output.Replace("||", "$");
            return output;
        }
    }
}
